import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [

    {
      path:'/',
      redirect:'/login',
      component:()=>import('../views/MainView.vue'),
      children:[
        {path:'/login',
        name:'LoginView',
        component: ()=>import('../views/LoginView.vue')},
        {
          path: '/index',
          name: 'IndexView',
          component: ()=>import ('../views/IndexView.vue')
        }
      ]

    }
  ]
})

export default router
